package tests;

import static org.junit.Assert.*;

import org.junit.Ignore;
import org.junit.Test;

import recipe.RecipeData;

public class TestRecipeData {

	@Test
	public void testRecipeData() {
		RecipeData rec = new RecipeData();
		assertTrue(
				rec.getRecipeName().isEmpty() &&
				rec.getCategory().isEmpty() &&
				rec.getImageFileName().isEmpty() &&
				rec.getIngredients().isEmpty() &&
				rec.getInstructions().isEmpty() &&
				rec.getTags().isEmpty()
				);
	}

	@Test
	public void testGetRecipeName() {
		String nm = "Name";
		RecipeData rec = new RecipeData();
		rec.setRecipeName(nm);
		assertTrue(nm.equals(rec.getRecipeName()));
	}

	@Test
	public void testSetRecipeName() {
		String nm = "Name";
		RecipeData rec = new RecipeData();
		rec.setRecipeName(nm);
		assertTrue(rec.getRecipeName().equals(nm));
	}

	@Test
	public void testGetImageFileName() {
		String img = "Image";
		RecipeData rec = new RecipeData();
		rec.setImageFileName(img);
		assertTrue(img.equals(rec.getImageFileName()));
	}

	@Test
	public void testSetImageFileName() {
		String img = "Image";
		RecipeData rec = new RecipeData();
		rec.setImageFileName(img);
		assertTrue(rec.getImageFileName().equals(img));
	}

	@Test
	public void testGetCategory() {
		String cat = "Category";
		RecipeData rec = new RecipeData();
		rec.setCategory(cat);
		assertTrue(cat.equals(rec.getCategory()));
	}

	@Test
	public void testSetCategory() {
		String cat = "Category";
		RecipeData rec = new RecipeData();
		rec.setCategory(cat);
		assertTrue(rec.getCategory().equals(cat));
	}

	@Test
	public void testGetIngredients() {
		String ing = "Ingredients";
		RecipeData rec = new RecipeData();
		rec.setIngredients(ing);
		assertTrue(ing.equals(rec.getIngredients()));
	}

	@Test
	public void testSetIngredients() {
		String ing = "Ingredients";
		RecipeData rec = new RecipeData();
		rec.setIngredients(ing);
		assertTrue(rec.getIngredients().equals(ing));
	}

	@Test
	public void testGetInstructions() {
		String instr = "Instructions";
		RecipeData rec = new RecipeData();
		rec.setInstructions(instr);
		assertTrue(instr.equals(rec.getInstructions()));
	}

	@Test
	public void testSetInstructions() {
		String instr = "Instructions";
		RecipeData rec = new RecipeData();
		rec.setInstructions(instr);
		assertTrue(rec.getInstructions().equals(instr));
	}

	@Test
	public void testGetTags() {
		String tg = "Tags";
		RecipeData rec = new RecipeData();
		rec.setTags(tg);
		assertTrue(tg.equals(rec.getTags()));
	}

	@Test
	public void testSetTags() {
		String tg = "Tags";
		RecipeData rec = new RecipeData();
		rec.setTags(tg);
		assertTrue(rec.getTags().equals(tg));
	}

	@Test
	@Ignore
	public void testConvertUnits() {
		fail("Not yet implemented");
	}

	@Test
	@Ignore
	public void testScaleAmount() {
		fail("Not yet implemented");
	}

}
